package com.zhao;

import com.zhao.concreteCommand.OrderCommand;
import com.zhao.invoker.Waitor;
import com.zhao.other.Order;
import com.zhao.receiver.SeniorChef;

public class Client {
    public static void main(String[] args) {
        SeniorChef seniorChef = new SeniorChef();

        Order order = new Order();
        order.setDiningTable(1);
        order.setFoodDic(1, "玉米粒炒肉末");

        OrderCommand orderCommand = new OrderCommand(seniorChef, order);

        Waitor waitor = new Waitor();

        waitor.setCommand(orderCommand);

        waitor.orderUp();
    }
}
